package org.feng.service.impl;

import lombok.AllArgsConstructor;
import org.feng.service.SmsService;
import org.feng.support.SmsBuild;
import org.feng.vo.SmsMessageVO;
import org.springframework.stereotype.Service;

/**
 * @Author feng
 * @Date 2022/6/7 14:22
 * @Description TODO
 */
@Service
@AllArgsConstructor
public class SmsServiceImpl implements SmsService {

    private SmsBuild smsBuild;

    @Override
    public Boolean sendMessage(SmsMessageVO message) {
        smsBuild.build(message).sendMessage(message);
        return true;
    }
}
